<template>
  <view>
    <free-nav-bar showBack title="品牌执法详情"></free-nav-bar>
    <view class="py-3 pl-3 pr-3 lineHight-2 font-14">
      <view>企业名称：{{ enterpriseName }}</view>
      <view>公用品牌名称：{{ publicBrandName }}</view>
      <view class="dfel">
        <view>执法情况说明：</view>
        <view style="width: 245px">{{ enforcementInstructions }}</view>
      </view>
      <view>处理意见：{{ handlingOpinions }}</view>
      <view>发布时间：{{ createTime }}</view>
    </view>
  </view>
</template>

<script>
import $H from "@/common/free-lib/request.js";
import freeNavBar from "@/components/free-ui/free-nav-bar.vue";
export default {
  components: {
    freeNavBar,
  },
  data() {
    return {
      enterpriseName,
      publicBrandName,
      enforcementInstructions,
      handlingOpinions,
      createTime,
    };
  },
  onLoad(option) {
    this.getBlackInfo(option.id);
  },
  methods: {
    getBlackInfo(id) {
      $H.get(
        "/agriculture/brandEnforcement/queryById",
        {
          id,
        },
        {}
      ).then((res) => {
		this.enterpriseName = res.result.enterpriseName;
		this.publicBrandName = res.result.publicBrandName;
		this.enforcementInstructions = res.result.enforcementInstructions;
		this.handlingOpinions = res.result.handlingOpinions;
		this.createTime = res.result.createTime;});
    },
  },
};
</script>

<style>
</style>